package library

import (
	"os/exec"
)

const (
	user     = "user"
	ip_port  = "ip_port"
	password = "Passwd"
)

func SendFile(ip string) (resp string, err error) {
	command := "scp tmp/tmpbash.sh root@" + ip + "root/tmpbash.sh"
	cmd := exec.Command("/bin/bash", "-c", command)
	bytes, err := cmd.Output()
	if err != nil {
		return "", err
	}
	resp = string(bytes)
	return resp, err

}
